<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>mbed-lib: mbed_gpio.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">mbed-lib
   &#160;<span id="projectnumber">1.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mbed_gpio.h File Reference</div>  </div>
</div>
<div class="contents">

<p>Various definition for General Purpose Input/Output (GPIO).  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;LPC17xx.h&quot;</code><br/>
<code>#include &quot;lpc17xx_gpio.h&quot;</code><br/>
</div>
<p><a href="mbed__gpio_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a6361914f366fe89588f0ec638a544a7d">MBED_GPIO_H</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga1a96368c99d63b0e715b7e0421f4a209">GPIO5</a>&#160;&#160;&#160;9</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga46027cd97ff756e5ddadcc10811b5699">GPIO6</a>&#160;&#160;&#160;8</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga3820cacb614277004870fc37b33ad084">GPIO7</a>&#160;&#160;&#160;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gaa951be0ce26f788049a86e407a70ae20">GPIO8</a>&#160;&#160;&#160;6</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gae2a4c4d28729daf18e1923a1878e7352">GPIO9</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gae285b2475841ecb1ac23d8511b360d0e">GPIO10</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gac376b1c124378935df7b3c171b2bef35">GPIO11</a>&#160;&#160;&#160;18</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga1dfa6e5489489f2797d3d80c718716ce">GPIO12</a>&#160;&#160;&#160;17</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga4b7d9a3961712ddd2a58532f4dcedc1d">GPIO13</a>&#160;&#160;&#160;15</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gad42a78782c6bb99ad7e7c1ec975b5b96">GPIO14</a>&#160;&#160;&#160;16</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gaabc2f003b1495cd03eef1fae31e6847a">GPIO15</a>&#160;&#160;&#160;23</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga209f1a013588f481824ff0f57d2fc21e">GPIO16</a>&#160;&#160;&#160;24</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gabf972cfb05a7f86e9a69db243792cbac">GPIO17</a>&#160;&#160;&#160;25</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gaaa3c86348d99077ec718c2461f0d4a91">GPIO18</a>&#160;&#160;&#160;26</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga546be0d3be4335be87bd46b9d6442edd">GPIO19</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga414493de8389b7908e5e8b6723a5fdd3">GPIO20</a>&#160;&#160;&#160;31</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga3b9ee0b882294530e8d2f343af3ba0fe">GPIO21</a>&#160;&#160;&#160;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gabdcdabfb67b100b20bd0326d730b69bb">GPIO22</a>&#160;&#160;&#160;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gabd64ab501b16d9074764973f71adde81">GPIO23</a>&#160;&#160;&#160;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga5d3043fd1db106a844092560243b5ddf">GPIO24</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga36cff7d300b200f71fcf3341651c4ae1">GPIO25</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga1471cf2ee224d707874fa19c68b3d5dc">GPIO26</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga0a715cbedcbaadfd991b28b3ce1caa07">GPIO27</a>&#160;&#160;&#160;11</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga6e5ccec6266bec3c50538e4b5a9cb0d7">GPIO28</a>&#160;&#160;&#160;10</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#ga62fa810782439ccd99ea38f7ed500a94">GPIO29</a>&#160;&#160;&#160;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiopins.html#gab2aa0ef0d4e65930b0caa23b1bf65388">GPIO30</a>&#160;&#160;&#160;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiolvl.html#gafe686f24f6bac080eaf4aed75aeba3b0">GP_LOW</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiolvl.html#ga4b4791b739a1a72fd60f226f2e4b918c">GP_HIGH</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpiolvl.html#ga671a1cdc05526c619354a615394eb932">GP_ERR</a>&#160;&#160;&#160;2</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#aa247915ab8dc16272fb5c4cf4b06672f">setGPInputCfg</a> (uint32_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">General Purpose Input Configuration.  <a href="#aa247915ab8dc16272fb5c4cf4b06672f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a42e14ab1c9c5e8036eb9d82607cc2545">setGPOutputCfg</a> (uint32_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">General Purpose Output Configuration.  <a href="#a42e14ab1c9c5e8036eb9d82607cc2545"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#ace77228354390a514b58378a433773ba">initGPInputs</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">General Purpose Input initialization function.  <a href="#ace77228354390a514b58378a433773ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a78b9a14fd6902acee08cd98cad1f965d">initGPOutputs</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">General Purpose Output initialization function.  <a href="#a78b9a14fd6902acee08cd98cad1f965d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a9743c4bddedd75c5e5f4a1508592aa10">checkConflicts</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Conflict resolver.  <a href="#a9743c4bddedd75c5e5f4a1508592aa10"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#aa5d557c3eeadde7a041e0b06d6f9e71d">initGPIO</a> (uint32_t, uint32_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO initialization function.  <a href="#aa5d557c3eeadde7a041e0b06d6f9e71d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a344e9371bb21f52a9a5c20cf1cc1ecca">GPIOSetVal</a> (uint32_t, uint8_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set value for general purpose outputs.  <a href="#a344e9371bb21f52a9a5c20cf1cc1ecca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a2302b858d97f2a0a1f1c30539edcc868">GPIOToggle</a> (uint32_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Toggle value for general purpose outputs.  <a href="#a2302b858d97f2a0a1f1c30539edcc868"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mbed__gpio_8h.html#a31f1ab5713448e3d116a1f8e3b5279a5">GPIOReadVal</a> (uint32_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read value from general purpose inputs.  <a href="#a31f1ab5713448e3d116a1f8e3b5279a5"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Various definition for General Purpose Input/Output (GPIO). </p>
<p>In this file are definitions for all pins on the MBED device. They can be used as either input or output by adding them to the corresponding configuration. </p>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="a6361914f366fe89588f0ec638a544a7d"></a><!-- doxytag: member="mbed_gpio.h::MBED_GPIO_H" ref="a6361914f366fe89588f0ec638a544a7d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MBED_GPIO_H</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Header guard. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a9743c4bddedd75c5e5f4a1508592aa10"></a><!-- doxytag: member="mbed_gpio.h::checkConflicts" ref="a9743c4bddedd75c5e5f4a1508592aa10" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void checkConflicts </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Conflict resolver. </p>
<p>This routine checks if the <a class="el" href="group__gpioconfig.html">GPIO configuration</a> conflicts with any initlialized peripherals. For any conflict, it unsets the pins in the <a class="el" href="group__gpioconfig.html">GPIO configuration</a>. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__deviceid.html">Device IDs</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a31f1ab5713448e3d116a1f8e3b5279a5"></a><!-- doxytag: member="mbed_gpio.h::GPIOReadVal" ref="a31f1ab5713448e3d116a1f8e3b5279a5" args="(uint32_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t GPIOReadVal </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read value from general purpose inputs. </p>
<p>This routine reads the output value from the indicated GP pin. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>Pin to be read, should be MBED_GPIOx.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>GP_LOW or GP_HIGH if the pin is correctly configured, or GP_ERR if the pin was not properly configured.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__gpio.html">General purpose I/O pins</a> </dd>
<dd>
<a class="el" href="group__gpiolvl.html">GPIO levels</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a344e9371bb21f52a9a5c20cf1cc1ecca" title="Set value for general purpose outputs.">GPIOSetVal()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a2302b858d97f2a0a1f1c30539edcc868" title="Toggle value for general purpose outputs.">GPIOToggle()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a344e9371bb21f52a9a5c20cf1cc1ecca"></a><!-- doxytag: member="mbed_gpio.h::GPIOSetVal" ref="a344e9371bb21f52a9a5c20cf1cc1ecca" args="(uint32_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIOSetVal </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set value for general purpose outputs. </p>
<p>This routine sets the output value for the indicated GP pin. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>Pin to be set, should be MBED_GPIOx. </td></tr>
    <tr><td class="paramname">val</td><td>Value to set, should be GP_LOW or GP_HIGH.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__gpio.html">General purpose I/O pins</a> </dd>
<dd>
<a class="el" href="group__gpiolvl.html">GPIO levels</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a2302b858d97f2a0a1f1c30539edcc868" title="Toggle value for general purpose outputs.">GPIOToggle()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a31f1ab5713448e3d116a1f8e3b5279a5" title="Read value from general purpose inputs.">GPIOReadVal()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2302b858d97f2a0a1f1c30539edcc868"></a><!-- doxytag: member="mbed_gpio.h::GPIOToggle" ref="a2302b858d97f2a0a1f1c30539edcc868" args="(uint32_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIOToggle </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Toggle value for general purpose outputs. </p>
<p>This routine toggles the output value for the indicated GP pin. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>Pin to be toggled, should be MBED_GPIOx.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__gpio.html">General purpose I/O pins</a> </dd>
<dd>
<a class="el" href="group__gpiolvl.html">GPIO levels</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a344e9371bb21f52a9a5c20cf1cc1ecca" title="Set value for general purpose outputs.">GPIOSetVal()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a31f1ab5713448e3d116a1f8e3b5279a5" title="Read value from general purpose inputs.">GPIOReadVal()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ace77228354390a514b58378a433773ba"></a><!-- doxytag: member="mbed_gpio.h::initGPInputs" ref="ace77228354390a514b58378a433773ba" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initGPInputs </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>General Purpose Input initialization function. </p>
<p>This routine initializes the pins set by <a class="el" href="mbed__gpio_8h.html#aa247915ab8dc16272fb5c4cf4b06672f">setGPInputCfg()</a> as general purpose inputs, unless they conflict with any other previously initialized peripherals. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="mbed__gpio_8h.html#a78b9a14fd6902acee08cd98cad1f965d" title="General Purpose Output initialization function.">initGPOutputs()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a9743c4bddedd75c5e5f4a1508592aa10" title="Conflict resolver.">checkConflicts()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa5d557c3eeadde7a041e0b06d6f9e71d"></a><!-- doxytag: member="mbed_gpio.h::initGPIO" ref="aa5d557c3eeadde7a041e0b06d6f9e71d" args="(uint32_t, uint32_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initGPIO </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>gpioConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GPIO initialization function. </p>
<p>This routine configures the pins according to the <a class="el" href="group__gpioconfig.html">GPIO configuration</a>. It is called from <a class="el" href="mbed__gpio_8h.html#ace77228354390a514b58378a433773ba">initGPInputs()</a> and <a class="el" href="mbed__gpio_8h.html#a78b9a14fd6902acee08cd98cad1f965d">initGPOutputs()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>Indicates what is to be initialized (inputs or outputs). Should be INIT_GPI or INIT_GPO. </td></tr>
    <tr><td class="paramname">gpioConfig</td><td>Pin configuration (see <a class="el" href="group__gpioconfig.html">GPIO configuration</a>).</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="mbed__gpio_8h.html#aa247915ab8dc16272fb5c4cf4b06672f" title="General Purpose Input Configuration.">setGPInputCfg()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a42e14ab1c9c5e8036eb9d82607cc2545" title="General Purpose Output Configuration.">setGPOutputCfg()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#ace77228354390a514b58378a433773ba" title="General Purpose Input initialization function.">initGPInputs()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a78b9a14fd6902acee08cd98cad1f965d" title="General Purpose Output initialization function.">initGPOutputs()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a78b9a14fd6902acee08cd98cad1f965d"></a><!-- doxytag: member="mbed_gpio.h::initGPOutputs" ref="a78b9a14fd6902acee08cd98cad1f965d" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initGPOutputs </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>General Purpose Output initialization function. </p>
<p>This routine initializes the pins set by <a class="el" href="mbed__gpio_8h.html#a42e14ab1c9c5e8036eb9d82607cc2545">setGPOutputCfg()</a> as general purpose outputs, unless they conflict with any other previously initialized peripherals. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="mbed__gpio_8h.html#ace77228354390a514b58378a433773ba" title="General Purpose Input initialization function.">initGPInputs()</a> </dd>
<dd>
<a class="el" href="mbed__gpio_8h.html#a9743c4bddedd75c5e5f4a1508592aa10" title="Conflict resolver.">checkConflicts()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa247915ab8dc16272fb5c4cf4b06672f"></a><!-- doxytag: member="mbed_gpio.h::setGPInputCfg" ref="aa247915ab8dc16272fb5c4cf4b06672f" args="(uint32_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setGPInputCfg </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>General Purpose Input Configuration. </p>
<p>This function defines which pins should be configured as general purpose inputs by setting the <a class="el" href="group__gpioconfig.html">GPIO configuration</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pins to be configured as inputs, indicated by setting the corresponding bits.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__gpio.html">General purpose I/O pins</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a42e14ab1c9c5e8036eb9d82607cc2545"></a><!-- doxytag: member="mbed_gpio.h::setGPOutputCfg" ref="a42e14ab1c9c5e8036eb9d82607cc2545" args="(uint32_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setGPOutputCfg </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>General Purpose Output Configuration. </p>
<p>This function defines which pins should be configured as general purpose outputs by setting the <a class="el" href="group__gpioconfig.html">GPIO configuration</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pins to be configured as outputs, indicating by setting the corresponding bits.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__gpio.html">General purpose I/O pins</a> </dd></dl>

</div>
</div>
</div>


<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 18 2012 14:53:28 for mbed-lib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
